from  selenium import webdriver
import  requests
driver=webdriver.PhantomJS()# 指定浏览器
# try:
#     header = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/63.0.3239.84 Safari/537.36'}
#     driver.get('http://www.tsrcw.com/hr/person/login.aspx') #请求URL
#    # print(driver.get('http://www.126.com'))
#     driver.implicitly_wait(10)# 等待10S
#     driver.find_element_by_id('username').clear()
#     driver.find_element_by_id('username').send_keys('刘sdf金龙sd龙')
#     driver.find_element_by_id('password').clear()
#     driver.find_element_by_id('password').send_keys('defe')
#     driver.find_element_by_id('Text_YZM').clear()
#     driver.find_element_by_id('Text_YZM').send_keys('xfnz')
#     driver.find_element_by_id('Button1').click()
#     print(driver.page_source)
# except Exception as e:
#     print(e)

params={
    'account': "admin", 'password': 'e10adc3949ba59abbe56e057f20f883e'
}
html=requests.post('http://192.168.0.89/SYS/AUTH/ACCOUNT/LOGIN',params)
print(html.text)